package com.ybkj.daijia.server.zhuanxian;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Car implements Serializable {

    /**
     * 空闲
     */
    public static final int CAR_FREE = 1;
    /**
     * 忙碌
     */
    public static final int CAR_BUSY = 2;
    private static final long serialVersionUID = 1L;
    private Long id;
    private Date created;
    private Date updated;
    private Long lineId;
    private String lineName;
    private Long companyId;
    private String companyName;
    private String carName;
    private String carNumber;
    private Integer status;
    private Double drivingDistance;
    private Date buyTime;
    private Long employId;
    private String employName;
    private Integer limitLine;
    private Date insuranceTime;
    private Date overhaulTime;
    private String picture;
    private String provincial;
    private String city;
    private String county;
    private String address;
    private Long version;
    private String appKey;
    private Integer ridepeopleNumber;
    private List<Line> lines;

    public List<Line> getLines() {
        return lines;
    }

    public void setLines(List<Line> lines) {
        this.lines = lines;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }


    public Long getLineId() {
        return lineId;
    }

    public void setLineId(Long lineId) {
        this.lineId = lineId;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName == null ? null : carName.trim();
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber == null ? null : carNumber.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public Double getDrivingDistance() {
        return drivingDistance;
    }

    public void setDrivingDistance(Double drivingDistance) {
        this.drivingDistance = drivingDistance;
    }

    public Date getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(Date buyTime) {
        this.buyTime = buyTime;
    }

    public Long getEmployId() {
        return employId;
    }

    public void setEmployId(Long employId) {
        this.employId = employId;
    }

    public String getEmployName() {
        return employName;
    }

    public void setEmployName(String employName) {
        this.employName = employName == null ? null : employName.trim();
    }

    public Integer getLimitLine() {
        return limitLine;
    }

    public void setLimitLine(Integer limitLine) {
        this.limitLine = limitLine;
    }

    public Date getInsuranceTime() {
        return insuranceTime;
    }

    public void setInsuranceTime(Date insuranceTime) {
        this.insuranceTime = insuranceTime;
    }

    public Date getOverhaulTime() {
        return overhaulTime;
    }

    public void setOverhaulTime(Date overhaulTime) {
        this.overhaulTime = overhaulTime;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }

    public String getProvincial() {
        return provincial;
    }

    public void setProvincial(String provincial) {
        this.provincial = provincial == null ? null : provincial.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county == null ? null : county.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public Integer getRidepeopleNumber() {
        return ridepeopleNumber;
    }

    public void setRidepeopleNumber(Integer ridepeopleNumber) {
        this.ridepeopleNumber = ridepeopleNumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Car other = (Car) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCreated() == null ? other.getCreated() == null
            : this.getCreated().equals(other.getCreated()))
            && (this.getUpdated() == null ? other.getUpdated() == null
            : this.getUpdated().equals(other.getUpdated()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null
            : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null
            : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getCarName() == null ? other.getCarName() == null
            : this.getCarName().equals(other.getCarName()))
            && (this.getCarNumber() == null ? other.getCarNumber() == null
            : this.getCarNumber().equals(other.getCarNumber()))
            && (this.getStatus() == null ? other.getStatus() == null
            : this.getStatus().equals(other.getStatus()))
            && (this.getDrivingDistance() == null ? other.getDrivingDistance() == null
            : this.getDrivingDistance().equals(other.getDrivingDistance()))
            && (this.getBuyTime() == null ? other.getBuyTime() == null
            : this.getBuyTime().equals(other.getBuyTime()))
            && (this.getEmployId() == null ? other.getEmployId() == null
            : this.getEmployId().equals(other.getEmployId()))
            && (this.getEmployName() == null ? other.getEmployName() == null
            : this.getEmployName().equals(other.getEmployName()))
            && (this.getLimitLine() == null ? other.getLimitLine() == null
            : this.getLimitLine().equals(other.getLimitLine()))
            && (this.getInsuranceTime() == null ? other.getInsuranceTime() == null
            : this.getInsuranceTime().equals(other.getInsuranceTime()))
            && (this.getOverhaulTime() == null ? other.getOverhaulTime() == null
            : this.getOverhaulTime().equals(other.getOverhaulTime()))
            && (this.getPicture() == null ? other.getPicture() == null
            : this.getPicture().equals(other.getPicture()))
            && (this.getProvincial() == null ? other.getProvincial() == null
            : this.getProvincial().equals(other.getProvincial()))
            && (this.getCity() == null ? other.getCity() == null
            : this.getCity().equals(other.getCity()))
            && (this.getCounty() == null ? other.getCounty() == null
            : this.getCounty().equals(other.getCounty()))
            && (this.getAddress() == null ? other.getAddress() == null
            : this.getAddress().equals(other.getAddress()))
            && (this.getVersion() == null ? other.getVersion() == null
            : this.getVersion().equals(other.getVersion()))
            && (this.getAppKey() == null ? other.getAppKey() == null
            : this.getAppKey().equals(other.getAppKey()))
            && (this.getRidepeopleNumber() == null ? other.getRidepeopleNumber() == null
            : this.getRidepeopleNumber().equals(other.getRidepeopleNumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getCarName() == null) ? 0 : getCarName().hashCode());
        result = prime * result + ((getCarNumber() == null) ? 0 : getCarNumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result =
            prime * result + ((getDrivingDistance() == null) ? 0 : getDrivingDistance().hashCode());
        result = prime * result + ((getBuyTime() == null) ? 0 : getBuyTime().hashCode());
        result = prime * result + ((getEmployId() == null) ? 0 : getEmployId().hashCode());
        result = prime * result + ((getEmployName() == null) ? 0 : getEmployName().hashCode());
        result = prime * result + ((getLimitLine() == null) ? 0 : getLimitLine().hashCode());
        result =
            prime * result + ((getInsuranceTime() == null) ? 0 : getInsuranceTime().hashCode());
        result = prime * result + ((getOverhaulTime() == null) ? 0 : getOverhaulTime().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getProvincial() == null) ? 0 : getProvincial().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getCounty() == null) ? 0 : getCounty().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
        result = prime * result + ((getRidepeopleNumber() == null) ? 0
            : getRidepeopleNumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "Car [id=" + id + ", created=" + created + ", updated=" + updated + ", lineId="
            + lineId + ", lineName="
            + lineName + ", companyId=" + companyId + ", companyName=" + companyName + ", carName="
            + carName
            + ", carNumber=" + carNumber + ", status=" + status + ", drivingDistance="
            + drivingDistance
            + ", buyTime=" + buyTime + ", employId=" + employId + ", employName=" + employName
            + ", limitLine="
            + limitLine + ", insuranceTime=" + insuranceTime + ", overhaulTime=" + overhaulTime
            + ", picture="
            + picture + ", provincial=" + provincial + ", city=" + city + ", county=" + county
            + ", address="
            + address + ", version=" + version + ", appKey=" + appKey + ", ridepeopleNumber="
            + ridepeopleNumber
            + ", lines=" + lines + "]";
    }


}